﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucCostImport.ascx.cs" Inherits="BSC.costs.ucCostImport" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>

<ext:DesktopWindow ID="winCostImport" runat="server" Width="400" Height="101"
    Title="Import chi phí" MonitorValid="true" AutoScroll="false" Resizable="false">
    <%--<Items>
        <ext:FormPanel ID="frmCostUpload" runat="server" Layout="AbsoluteLayout" Border="false"
           FileUpload="true" BodyStyle="background:#DFE8F6" PaddingSummary="10px 10px 10px 10px">
            <Items>
                 
                <ext:FileUploadField ID="FileUploadField1" runat="server" 
                    Width="350" Icon="Attach" EmptyText="Chọn file..." LabelWidth="10">
                    <Listeners>
                        <FileSelected Handler="checkType()" />
                    </Listeners>
                </ext:FileUploadField>
                   
            </Items>           
            <BottomBar>
                <ext:StatusBar ID="StatusBar1" runat="Server">
                    <Items>
                      <%--  <ext:Button ID="Button1"  runat="Server" Text="Optimize" Icon="Accept">
                            <DirectEvents>
                                <Click OnEvent="OptimizeCode" Before="return #{frmCostUpload}.getForm().isValid()"
                                    Success="SRResultInfo(1,'Optimize thành công')" Failure="alert(result);SRResultInfo(0,'Có lỗi phát sinh trong quá trình Optimize')"/>
                            </DirectEvents>
                        </ext:Button>
                        <ext:Button ID="btnUpload"  Disabled="true" runat="Server" Text="Import" Icon="Disk">
                            <DirectEvents>
                                <Click OnEvent="Upload" Before="return #{frmCostUpload}.getForm().isValid()"
                                    Success="SRResultInfo(1,'Import thành công')" Failure="SRResultInfo(0,'Có lỗi phát sinh trong quá trình import')"/>
                            </DirectEvents>
                        </ext:Button>
                    </Items>
                </ext:StatusBar>
            </BottomBar>
        </ext:FormPanel>
    </Items>--%>
    <AutoLoad Url="costs/fact_cost_import.aspx" Mode="IFrame" ShowMask="true">
        
    </AutoLoad>
    
</ext:DesktopWindow>